2005-10-27 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more
+ careful about initializing cell_area. (#319382, Tommi
+ Komulainen)
+
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
Ctrl-PageUp/PageDown. (#318670, Christian Neumair)
2005-10-27 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more
+ careful about initializing cell_area. (#319382, Tommi
+ Komulainen)
+
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
Ctrl-PageUp/PageDown. (#318670, Christian Neumair)
for (list = (rtl ? g_list_last (tree_view->priv->columns) : g_list_first (tree_view->priv->columns));
list; list = (rtl ? list->prev : list->next))
{
- column = list->data;
+ GtkTreeViewColumn *candidate = list->data;
- if (!column->visible)
+ if (!candidate->visible)
continue;
- background_area.width = column->width;
+ background_area.width = candidate->width;
if ((background_area.x > (gint) event->x) ||
(background_area.x + background_area.width <= (gint) event->x))
{
}
/* we found the focus column */
+ column = candidate;
cell_area = background_area;
cell_area.width -= horizontal_separator;
cell_area.height -= vertical_separator;